package com.lxy.service.impl;

import com.lxy.service.FileService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;


@Service
public class FileServiceImpl implements FileService {



    @Override
    public String upload(MultipartFile file) throws IllegalAccessException {
        if(file.isEmpty() || null == file){
            throw new IllegalAccessException("文件上传不能为空");
        }


        return "";
    }
}
